export default{
    /**
     * 获取计算属性的通用配置
     *
     * @param {String} attrName - 属性中对应的属性值
     * @param {String} belong - default allValue
     */
    getAttrHandle({ attrName, belong = 'allValue' }) {
        return {
            get() {
                console.log(belong)
                if (belong === 'allValue') {
                    return this.data.allValue[attrName]
                }
                return this.data.positionValue
            },
            set(value) {
                console.log(value)
                this.updateDataAttr({
                    belong,
                    attrName,
                    index: this.modulesIndex,
                    value
                })
            }
        }
    }
}
